package com.dodayum.java8.lamdab;

import java.util.ArrayList;
import java.util.List;

public class LambdaDemo {

    public static void main(String[] args) {
        List<Integer> a = new ArrayList<>();
        for (int i = 0; i < 1000; i++) {
            a.add(i);
        }
        List<String> b = new ArrayList<>();
        a.forEach(c -> b.add(c + "demo"));
        b.forEach(System.out::println);
    }

}
